import { ReactSVG } from 'react-svg'

interface Props {
  src: string
  width?: number | string | undefined
  height?: number | string | undefined
}
function SvgIcon({ src, width = '24px', height = '24px' }: Props) {
  return (
    <ReactSVG
      src={src}
      style={{
        width,
        height
      }}
    />
  )
}

export default SvgIcon
